<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>基础图形元素</title>
  <style>
    html, body {
      padding: 0;
      margin: 0;
      width: 100%;
      height: 100%;
      overflow: hidden;
    }
    #app {
      width: 100%;
      height: 100%;
    }
  </style>
</head>
<body>
  <div id="app"></div>
  <script src="https://unpkg.com/spritejs/dist/spritejs.min.js"></script>
  <script src="https://unpkg.com/@qcharts/core@1.0.25/dist/index.js"></script>
  <script>
    const { Chart, Gauge } = qcharts;

    const chart = new Chart({ container: '#app' });

    const gauge = new Gauge({
      min: 0,
      max: 100,
      percent:60,
      lineWidth: 20,
      tickStep: 10
    });

    gauge.style('title', { fontSize: 36 });

    chart.append(gauge);
  </script>
</body>
</html>